<div class="modal-content">
    <div class="modal-header">
        <h4 class="modal-title">修改应用</h4>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">×</span>
        </button>
    </div>
    <div class="modal-body">
        <div>
            <div class="form-group row">
                <label class="col-sm-2 col-form-label">应用名称</label>
                <div class="col-sm-10">
                    <input type="text" ng-model="form.name" class="form-control" form-check="must" form-check-alert="应用名不能为空！">
                </div>
            </div>
            <div class="form-group row">
                <label class="col-sm-2 col-form-label">网页端地址</label>
                <div class="col-sm-10">
                    <input type="text" ng-model="form.url" class="form-control" form-check="must" form-check-alert="请填写URL地址应用访问地址">
                </div>
            </div>
            <div class="form-group row">
                <label class="col-sm-2 col-form-label">移动端/小程序地址</label>
                <div class="col-sm-10">
                    <input type="text" ng-model="form.mobile_url" class="form-control">
                </div>
            </div>
            <div class="form-group row">
                <label class="col-sm-2 col-form-label">图标地址</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control" ng-model="form.icon"/>
                </div>
                <div class="col-sm-2">
                    <form class="form-horizontal uploadForm" id="uploadForm" enctype="multipart/form-data">
                        <button class="btn btn-outline-primary br2" style="width: 112px;margin-left:0px;">
                            <i class="iconfont icon-upload1"></i><input type="file" id="uploadFile" class="file_input" name="mFileName" accept="{{form.accept}}">
                           	 上传图片
                        </button>
                    </form>
                </div>
            </div>
            <div class="form-group row">
                <label class="col-sm-2 col-form-label">图标颜色</label>
                <div class="col-sm-4">
                    <input type="text" ng-model="form.icon_color" class="form-control">
                </div>
                <label class="col-sm-1"></label>
                <label class="col-sm-1 col-form-label">状态</label>
                <div class="col-sm-4">
                    <select class="form-control" ng-model="form.status"  form-check="must" form-check-alert="系统状态不能为空！">
                    	<option value="">==请选择==</option>
                        <option value="0">启用</option>
                        <option value="1">开发</option>
                        <option value="2">维护</option>
                        <option value="3">禁用</option>
                    </select>
                </div>
			</div>
            <div class="form-group row">
            	<label class="col-sm-2 col-form-label">使用用户</label>
                <div class="col-sm-10" style="line-height: 38px;">
                	<span class="check-box" ng-repeat="usertype in userTypeList" style="margin-right: 20px;">
                        <input type="checkbox" id="{{usertype.id}}" value="{{usertype.id}}" name="userPk"/>
                        <label for="{{usertype.id}}"></label>{{usertype.name}}
                    </span>
               	</div>
            </div>
            <div class="form-group row">
               	<label class="col-sm-2 col-form-label">设备类型</label>
                <div class="col-sm-10" style="line-height: 38px;">
                	<span class="check-box" ng-repeat="apptype in appTypeList" style="margin-right: 20px;">
                        <input type="checkbox" id="{{apptype.id}}" value="{{apptype.id}}" name="typePk"/>
                        <label for="{{apptype.id}}"></label>{{apptype.name}}
                    </span>
               	</div>
            </div>
			<div class="form-group row">
                <label class="col-sm-2 col-form-label">资源集合</label>
                <div class="col-sm-10">
                    <input type="text" ng-model="form.resource_ids" class="form-control">
                </div>
            </div>
            <div class="form-group row">
                <label class="col-sm-2 col-form-label">访问密匙</label>
                <div class="col-sm-10">
                    <input type="text" ng-model="form.client_secret" class="form-control" form-check="must" form-check-alert="访问密匙不能为空！">
                </div>
            </div>
            <div class="form-group row">
                <label class="col-sm-2 col-form-label">权限范围</label>
                <div class="col-sm-10">
                    <input type="text" ng-model="form.scope" class="form-control" form-check="must" form-check-alert="权限范围不能为空！">
                </div>
            </div>
            <div class="form-group row">
                <label class="col-sm-2 col-form-label">授权类型</label>
                <div class="col-sm-10">
                    <input type="text" ng-model="form.authorized_grant_types" class="form-control" form-check="must" form-check-alert="授权类型不能为空！">
                </div>
            </div>
            <div class="form-group row">
                <label class="col-sm-2 col-form-label">重定向URI</label>
                <div class="col-sm-10">
                    <input type="text" ng-model="form.web_server_redirect_uri" class="form-control">
                </div>
            </div>
            <div class="form-group row">
                <label class="col-sm-2 col-form-label">权限值</label>
                <div class="col-sm-10">
                    <input type="text" ng-model="form.authorities" class="form-control">
                </div>
            </div>
            <div class="form-group row">
                <label class="col-sm-2 col-form-label">access_token有效时间值</label>
                <div class="col-sm-10">
                    <input type="text" ng-model="form.access_token_validity" class="form-control">
                </div>
            </div>
            <div class="form-group row">
                <label class="col-sm-2 col-form-label">refresh_token有效时间值</label>
                <div class="col-sm-10">
                    <input type="text" ng-model="form.refresh_token_validity" class="form-control">
                </div>
            </div>
            <div class="form-group row">
                <label class="col-sm-2 col-form-label">是否自动Approval操作</label>
                <div class="col-sm-10">
                    <select class="form-control" ng-model="form.autoapprove">
                    	<option value="">==请选择==</option>
                    	<option value="false">false</option>
                        <option value="true">true</option>
                        <option value="read">read</option>
                        <option value="write">write</option>
                    </select>
                </div>
            </div>
        </div>
    </div>
    <div class="modal-footer">
        <button ng-click="saveForm()" type="button" class="btn btn-success"><i class="iconfont icon-correct"></i>&nbsp;保存</button>
    </div>
</div>